/*全文搜索的js控制脚本*/
function simpleSearch(){
    var key = $("#key").val();
    if(key.trim()==''){
    	alert("请输入检索关键字！");
    	return;
    }
    var filed=$("input[name='filed']:checked").val();
    $.post("dahua/modules/article/lucene/LuceneHandler/search.ejw",{filed:filed,key:key},function(data){
    	$("#result").html(data);
    });
};
/*翻页脚本*/
function upordownpage(sorh) {
	
		var filed = $("input[name='filed']:checked").val();
		var key = $("#key").val();
		var start = $("#start").val();
		if (sorh == "u") {
			start = parseInt(start) - 10;
		}
		if (sorh == "d") {
			start = parseInt(start) + 10;
		}
		$.post("dahua/modules/article/lucene/LuceneHandler/search.ejw", {filed:filed, key:key, start:start}, function (data) {
			$("#result").html(data);
		});

}
function topage(i) {
	
		var filed = $("input[name='filed']:checked").val();
		var key = $("#key").val();
		var start = (parseInt(i) - 1) * 10;
		$.post("dahua/modules/article/lucene/LuceneHandler/search.ejw", {filed:filed, key:key, start:start}, function (data) {
			$("#result").html(data);
		});
}
